package com.bjpowernode.mvc.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.bjpowernode.db.domain.SysAccount;
import com.bjpowernode.db.mapper.SysAccountMapper;
import com.bjpowernode.mvc.service.inter.AccountService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;


@RequiredArgsConstructor
@Service
public class AccountServiceImpl implements AccountService {


    private final SysAccountMapper sysAccountMapper;

    @Override
    public SysAccount queryByUserId(Integer uid) {
        return sysAccountMapper.selectOne(new QueryWrapper<SysAccount>().eq("uid", uid));
    }
}
